Release 10.1A: OpenEdge Development:
Java Open Clients
Adding parameters using data type-specific methods
You can set each parameter using one of the methods on the
com.progress.open4gl.javaproxy.ParamArrayclass that is specified for the corresponding Progress 4GL data type. Progress data types that are mapped to intrinsic data types in Java have two sets of methods:Methods to add arrays of each data type are also provided.
General syntax for data type-specific add parameter methods
The general syntax of these methods is as follows:
ProgressTypeIndicates the Progress 4GL data type of the parameter, such as
DecimalinaddDecimal(), for adding a parameter of data typeDECIMAL.positionSpecifies a 0-based index indicating the parameter position.
DataTypeSpecifies the Java data type of the parameter, for example,
java.math.BigDecimalorjava.math.BigDecimal[].valueSpecifies a variable that contains the value of the parameter, or
nullfor anOUTPUTparameter.modeSpecifies the 4GL mode (passing direction) of the parameter. This can be one of the following constant values:
extentValueSpecifies the extent of an array for methods that add an array parameter (where
ProgressTypeis appended withArray, as inAddDecimalArray()).MetaTypeSpecifies one of the following classes for methods that add a temp-table or ProDataSet parameter:
ProResultSetMetaDataImpl— Provides the schema information for temp-table parameters that are mapped to ajava.sql.ResultSet. For more information on defining this schema, see the "Defining the schema for a temp-table parameter mapped to a java.sql.ResultSet" section.ProDataGraphMetaData— Provides the schema information for ProDataSet parameters and temp-table parameters that are mapped to a com.progress.open4gl.ProDataGraph. For more information on defining the schema for ProDataSet parameters, see the "Defining the schema for a ProDataSet parameter" section. For more information on defining the schema for temp-table parameters mapped to aProDataGraph, see the "Defining the schema for a temp-table parameter mapped to a ProDataGraph" section.metaDataSpecifies an instance of
MetaType. WhenmodeisParamArrayMode.OUTPUTandProgressTypeisDatasetHandleorTableHandle(passing a dynamic ProDataSet or temp-table parameter), you can set this parameter tonull.Syntax summaries of all data type-specific add parameter methods
The following sections list syntax summaries for all of the data type-specific methods for adding parameters to a
ParamArrayobject:CHARACTER
These are the data type-specific methods for adding a 4GL
CHARACTERparameter:
For information on the parameters to these methods, see the "General syntax for data type-specific add parameter methods" section.
COM-HANDLE
These are the data type-specific methods for adding a 4GL
COM-HANDLEparameter:
For information on the parameters to these methods, see the "General syntax for data type-specific add parameter methods" section.
DATASET or DATASET-HANDLE
These are the data type-specific methods for adding a 4GL ProDataSet (
DATASETorDATASET-HANDLE) parameter:
For information on the parameters to these methods, see the "General syntax for data type-specific add parameter methods" section.
DATE
These are the data type-specific methods for adding a 4GL
DATEparameter:
For information on the parameters to these methods, see the "General syntax for data type-specific add parameter methods" section.
DATETIME
These are the data type-specific methods for adding a 4GL
DATETIMEparameter:
For information on the parameters to these methods, see the "General syntax for data type-specific add parameter methods" section.
DATETIME-TZ
These are the data type-specific methods for adding a 4GL
DATETIME-TZparameter:
For information on the parameters to these methods, see the "General syntax for data type-specific add parameter methods" section.
DECIMAL
These are the data type-specific methods for adding a 4GL
DECIMALparameter:
For information on the parameters to these methods, see the "General syntax for data type-specific add parameter methods" section.
HANDLE
These are the data type-specific methods for adding a 4GL
HANDLEparameter:
For information on the parameters to these methods, see the "General syntax for data type-specific add parameter methods" section.
INTEGER
These are the data type-specific methods for adding a 4GL
INTEGERparameter:
For information on the parameters to these methods, see the "General syntax for data type-specific add parameter methods" section.
LOGICAL
These are the data type-specific methods for adding a 4GL
LOGICALparameter:
For information on the parameters to these methods, see the "General syntax for data type-specific add parameter methods" section.
LONGCHAR
These are the data type-specific methods for adding a 4GL
LONGCHARparameter:
For information on the parameters to these methods, see the "General syntax for data type-specific add parameter methods" section.
MEMPTR
These are the data type-specific methods for adding a 4GL
MEMPTRparameter:
For information on the parameters to these methods, see the "General syntax for data type-specific add parameter methods" section.
RAW
These are the data type-specific methods for adding a 4GL
RAWparameter:
For information on the parameters to these methods, see the "General syntax for data type-specific add parameter methods" section.
RECID
These are the data type-specific methods for adding a 4GL
RECIDparameter:
For information on the parameters to these methods, see the "General syntax for data type-specific add parameter methods" section.
ROWID
These are the data type-specific methods for adding a 4GL
ROWIDparameter:
For information on the parameters to these methods, see the "General syntax for data type-specific add parameter methods" section.
TABLE or TABLE-HANDLE
These are the data type-specific methods for adding a 4GL temp-table (
TABLEorTABLE-HANDLE) parameter:
For information on the parameters to these methods, see the "General syntax for data type-specific add parameter methods" section.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |